import React from 'react';
import { Button, ErrorBlock } from 'antd-mobile'
import './Page404.less'


const Page404 = (props) => {
    const { navigate } = props
    return (
    <div className="page404">
        <ErrorBlock status='empty' description="去逛逛其他页面吧"/>
            <div className="btn">
                <Button color='warning' onClick={() => navigate(-1)}>
                    返回上一页
                </Button>
                <Button color='primary' onClick={() => { navigate('/', { replace: true }) }}>
                    回到首页
                </Button>
            </div>
    </div>)
}

export default Page404
